<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--bootstrap插件-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link href="/static/plugin/bootstrap/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/static/plugin/jo/joUI.css" rel="stylesheet"/>
    <!--字体插件-->
    <link href="/static/plugin/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="/static/plugin/layui-2.4.3/css/layui.css" rel="stylesheet"/>
    <!--ztree-->
    <link href="/static/plugin/zTree/css/metroStyle/metroStyle.css" rel="stylesheet"/>
    <!--common-->
    <link href="/static/css/common.css" rel="stylesheet"/>
    <title>污染物产生及排放情况表单</title>
</head>
<body>
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
    <ul class="layui-tab-title">
        <li class="layui-this">污染物产生及排放情况信息</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <!--按钮栏-->
                        <div class="form-group button-bar button-bar">
                            <!--按钮占位符.加载到的按钮会渲染到占位符里面-->
                            <span class="young-button-placeholder" navigateId="WRW_FORM_BUTON"></span>
                        </div>
                        <!--按钮栏-->
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <form id="pageForm" name="pageForm" action="" method="post">
                            <table class="table-bordered layui-table">
                                <colgroup>
                                    <col width="150">
                                    <col width="500">
                                    <col width="150">
                                </colgroup>
                                <tbody>
                                <tr>
                                    <td class="styleright must" style="width: 200px"><span style="color: red">*</span>污染物名称</td>
                                    <td class="stylecenter">
                                        <input type="text" name="pollutantname" value="" class="form-control "
                                               ErrEmpty="污染物名称不允许为空"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must"><span style="color: red">*</span>计量单位</td>
                                    <td class="stylecenter">
                                        <input type="text" name="measurement" value="吨" class="form-control "
                                               ErrEmpty="计量单位不允许为空"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must"><span style="color: red">*</span>上年度产量</td>
                                    <td class="stylecenter">
                                        <input type="text" name="preyearcreate" value="" class="form-control "
                                               ErrEmpty="上年度产量不允许为空" ErrNumber="请输入数字"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must"><span style="color: red">*</span>上年度排放</td>
                                    <td class="stylecenter">
                                        <input type="text" name="preyearpollution" value="" class="form-control "
                                               ErrEmpty="上年度排放不允许为空" ErrNumber="请输入数字"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must"><span style="color: red">*</span>备注</td>
                                    <td class="stylecenter">
                                        <textarea type="text" name="remarks" value="" class="form-control "
                                                  ErrEmpty="备注不允许为空"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must"><span style="color: red">*</span>锁定</td>
                                    <td class="stylecenter">
                                        <select style="width: 100px" name="unlack" value="0" class="form-control"
                                                ErrNumber="锁定标记不允许为空">
                                            <option value="0">未锁定</option>
                                            <option value="1">已锁定</option>
                                        </select>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="young-form-item col-md-6 " id="keynodiv" style="display: none">
                                <div class="young-form-label">主键</div>
                                <div class="young-form-tips"></div>
                                <div class="young-form-input-block">
                                    <input type="text" name="keyno" value="" class="form-control " readonly/>
                                </div>
                            </div>
                            <!--<div class="young-form-item col-md-6 must">
                                <div class="young-form-label">污染物名称</div>
                                <div class="young-form-tips"></div>
                                <div class="young-form-input-block">
                                    <input type="text" name="pollutantname" value="" class="form-control "
                                           ErrEmpty="污染物名称不允许为空"/>
                                </div>
                            </div>
                            <div class="young-form-item col-md-6 must">
                                <div class="young-form-label">计量单位</div>
                                <div class="young-form-tips"></div>
                                <div class="young-form-input-block">
                                    <input type="text" name="measurement" value="吨" class="form-control "
                                           ErrEmpty="计量单位不允许为空"/>
                                </div>
                            </div>
                            <div class="young-form-item col-md-6 must">
                                <div class="young-form-label">上年度产量</div>
                                <div class="young-form-tips"></div>
                                <div class="young-form-input-block">
                                    <input type="text" name="preyearcreate" value="" class="form-control "
                                           ErrEmpty="上年度产量不允许为空"/>
                                </div>
                            </div>
                            <div class="young-form-item col-md-6 must">
                                <div class="young-form-label">上年度排放</div>
                                <div class="young-form-tips"></div>
                                <div class="young-form-input-block">
                                    <input type="text" name="preyearpollution" value="" class="form-control "
                                           ErrEmpty="上年度排放不允许为空"/>
                                </div>
                            </div>
                            <div class="young-form-item col-md-6 must">
                                <div class="young-form-label">备注</div>
                                <div class="young-form-tips"></div>
                                <div class="young-form-input-block">
                                    <textarea type="text" name="remarks" value="" class="form-control "
                                              ErrEmpty="备注不允许为空"></textarea>
                                </div>
                            </div>
                            <div class="young-form-item col-md-6 must">
                                <div class="young-form-label">锁定</div>
                                <div class="young-form-tips"></div>
                                <div class="young-form-input-block">
                                    <select style="width: 100px" name="unlack" value="" class="form-control"
                                            ErrNumber="锁定标记不允许为空">
                                        <option value="0">未锁定</option>
                                        <option value="1">已锁定</option>
                                    </select>
                                </div>
                            </div>-->

                            <div class="young-form-item col-md-6 must" style="display: none">
                                <div class="young-form-label">所属企业编码</div>
                                <div class="young-form-tips"></div>
                                <div class="young-form-input-block">
                                    <input type="text" id="enterprisecode" name="enterprisecode" value=""
                                           class="form-control " ErrEmpty="所属企业编码不允许为空"/>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!--配置信息-->
<script src="/static/js/config.js"></script>
<!--jquery-->
<script src="/static/plugin/jquery/jquery-3.3.1.js"></script>
<script src="/static/plugin/jquery/jquery.cookie.js"></script>
<!--bootstrap-->
<script src="/static/plugin/bootstrap/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="/static/plugin/other/html5shiv.js"></script>
<script src="/static/plugin/other/respond.min.js"></script>
<![endif]-->
<!--layui-->
<script src="/static/plugin/layui-2.4.3/layui.all.js"></script>
<!--ztree-->
<script src="/static/plugin/zTree/js/jquery.ztree.all.js"></script>
<!--common-->
<script src="/static/js/common.js"></script>
<!--jo-->
<script src="/static/plugin/jo/jo.js"></script>
<script src="/static/plugin/jo/jo-adapt.js"></script>
<script src="/static/plugin/jo/jo-page-view.js"></script>
<script src="/static/plugin/jo/jo-page-form.js"></script>
<script src="/static/plugin/jo/jo-listener.js"></script>
<script type="text/javascript">
    $(function () {
        var jParams = {
            "PKName": "keyno",//主键属性名
            "saveAfter": "toEdit",
            "addUrl": "/nyd/uviPollutiontreatment/insert",//新增
            "deleteUrl": "/nyd/uviPollutiontreatment/delete",//删除
            "updateUrl": "/nyd/uviPollutiontreatment/update",//修改
            "formDataUrl": "/nyd/uviPollutiontreatment/get",//查询

            //"readonly2Label" : true //只读转文本
        };
        joForm.initFormPage(jParams);//初始化
        initButton();
    });
    //初始化新增页面回调函数(在初始化按钮前发生)
    joForm.initFormPageOfAdd = function () {
        if (joForm.isAdd) {
            $("#keynodiv").hide();
        }
        $("#enterprisecode").val(jo.getUrlParam("enterprisecode"));

    };
    //初始化表单值前处理
    joForm.initFormValueBefore = function (oJson) {

    };
    //初始化表单值后处理
    joForm.initFormValueAfter = function (oJson) {


    };
    //新增请求提交前回调函数
    joForm.dealDataAtSaveBefore = function (oJson) {

    };
    //修改请求提交前回调函数
    joForm.dealDataAtUpdateBefore = function (oJson) {

    };
    /* 关于joForm更多回调函数和配置参数可查看jo-page-form.js */
</script>
</body>
</html>
